package com.pingan.cloud.service.impl;

import com.pingan.cloud.dao.UserDao;
import com.pingan.cloud.dto.User;
import com.pingan.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;
    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }
	@Override
	public User findById(Integer id) {
		return userDao.findById(id);
	}
}
